﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using JStore.Core.Entities;
using JStore.Data.Daos;
using NUnit.Framework;
using Newtonsoft.Json;
using SpeadFrm.Utility;

namespace JStore.Tests
{
    [TestFixture]
    public class Class1
    {
        [Test]
        public void GetParentJdList()
        {
            var userInfoDao = new UserInfoDao();
            var list = userInfoDao.GetParentJdList("test3_1", 40);
            foreach (var userInfo in list)
            {
                Console.WriteLine(userInfo.UserName);
            }

        }

        [Test]
        public void GetParentJdArea()
        {
            var userInfoDao = new UserInfoDao();
            var list = userInfoDao.GetParentJdArea("test3_1");
            Console.WriteLine(list.UserName);
        }

        [Test]
        public void GetParentTjList()
        {
            var userInfoDao = new UserInfoDao();
            var list = userInfoDao.GetParentTjList("test3_1", 40);
            foreach (var userInfo in list)
            {
                Console.WriteLine(userInfo.UserName);
            }
        }

        [Test]
        public void Test123()
        {
            var temp = DateTime.Now.AddDays(-7);
            var lastWeekMonday = DateTimeHelper.GetWeekMonday(temp);
            var lastWeekSunday = DateTimeHelper.GetWeenSunday(temp);
            Console.WriteLine(lastWeekMonday + "~" + lastWeekSunday);
        }


    }
}
